package com.example.sentinel.sentinel.block.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;

/**
 * 限流规则，异常处理逻辑
 * @author chengjian 
 * @date 2021/6/30
 */
@Slf4j
public class FlowBlockHandler {

    public static String limitStreamBlockHandler(BlockException e){
        return "当前访问人数较多，请稍后重试！";
    }
}
